package cn.licoy.wdog.hospitaluser;

import cn.licoy.wdog.core.service.hospital.HospitalUserService;
import cn.licoy.wdog.core.service.hospital.SmscodeService;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
import java.util.regex.Pattern;

/**
 * @author Sunne
 * Create time 2018/6/21 17:21
 * @return null
 **/

public class User {
    @Autowired
    HospitalUserService hospitalUserService;
    @Autowired
    SmscodeService smscodeService;

    @Test
    public void test(){
        String str1 = "撑死你说";
        String str3 = "撑死你说";
        String str2 = "as123456";
        Pattern pattern = Pattern.compile("^[-\\+]?[\\d]*$");
        boolean isStr1 = pattern.matcher(str1).matches();
        boolean isStr2 = pattern.matcher(str2).matches();
        System.out.println(isStr1);
        System.out.println(isStr2);

    }
}
